// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_FA_USED_APPLICATION
// * CreateDate    : 2012/3/13 10:10:36
// * Creater       : CodeSmith
// * LastChangeDate: 2012/3/13 10:10:36
// * LastChanger   : 2012/3/13 10:10:36
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;

namespace ESOL.Common.Entity
{
	[Serializable]
	public partial class FaUsedApplicationEntity : EntityBase
    {
        public FaUsedApplicationTable TableSchema
        {
            get
            {
                return FaUsedApplicationTable.Current;
            }
		}
		
		public FaUsedApplicationEntity()
        {

        }
		
		public FaUsedApplicationEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.ApplicationId = Convert.ToString(CommonFunctions.ToObject(dr["APPLICATION_ID"]));
			this.AssetId = Convert.ToString(CommonFunctions.ToObject(dr["ASSET_ID"]));
			this.ApplicationCode = Convert.ToString(CommonFunctions.ToObject(dr["APPLICATION_CODE"]));
			this.UsedType = Convert.ToString(CommonFunctions.ToObject(dr["USED_TYPE"]));
			this.Reason = Convert.ToString(CommonFunctions.ToObject(dr["REASON"]));
			this.ApplicationPerson = Convert.ToString(CommonFunctions.ToObject(dr["APPLICATION_PERSON"]));
			this.ApplicationDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["APPLICATION_DATE"]));
			this.DepartmentId = Convert.ToString(CommonFunctions.ToObject(dr["DEPARTMENT_ID"]));
			this.PersonId = Convert.ToString(CommonFunctions.ToObject(dr["PERSON_ID"]));
			this.FromDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["FROM_DATE"]));
			this.EndDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["END_DATE"]));
			this.Remark = Convert.ToString(CommonFunctions.ToObject(dr["REMARK"]));
			this.Status = Convert.ToString(CommonFunctions.ToObject(dr["STATUS"]));
			this.ApprovedPerson = Convert.ToString(CommonFunctions.ToObject(dr["APPROVED_PERSON"]));
			this.ApprovedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["APPROVED_DATE"]));
			this.OperatedBy = Convert.ToString(CommonFunctions.ToObject(dr["OPERATED_BY"]));
			this.OperatedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["OPERATED_DATE"]));
			this.ConfirmedBy = Convert.ToString(CommonFunctions.ToObject(dr["CONFIRMED_BY"]));
			this.ConfirmedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["CONFIRMED_DATE"]));
        }
		
		public FaUsedApplicationEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.ApplicationId = Convert.ToString(CommonFunctions.ToObject(dr["APPLICATION_ID"]));
			this.AssetId = Convert.ToString(CommonFunctions.ToObject(dr["ASSET_ID"]));
			this.ApplicationCode = Convert.ToString(CommonFunctions.ToObject(dr["APPLICATION_CODE"]));
			this.UsedType = Convert.ToString(CommonFunctions.ToObject(dr["USED_TYPE"]));
			this.Reason = Convert.ToString(CommonFunctions.ToObject(dr["REASON"]));
			this.ApplicationPerson = Convert.ToString(CommonFunctions.ToObject(dr["APPLICATION_PERSON"]));
			this.ApplicationDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["APPLICATION_DATE"]));
			this.DepartmentId = Convert.ToString(CommonFunctions.ToObject(dr["DEPARTMENT_ID"]));
			this.PersonId = Convert.ToString(CommonFunctions.ToObject(dr["PERSON_ID"]));
			this.FromDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["FROM_DATE"]));
			this.EndDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["END_DATE"]));
			this.Remark = Convert.ToString(CommonFunctions.ToObject(dr["REMARK"]));
			this.Status = Convert.ToString(CommonFunctions.ToObject(dr["STATUS"]));
			this.ApprovedPerson = Convert.ToString(CommonFunctions.ToObject(dr["APPROVED_PERSON"]));
			this.ApprovedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["APPROVED_DATE"]));
			this.OperatedBy = Convert.ToString(CommonFunctions.ToObject(dr["OPERATED_BY"]));
			this.OperatedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["OPERATED_DATE"]));
			this.ConfirmedBy = Convert.ToString(CommonFunctions.ToObject(dr["CONFIRMED_BY"]));
			this.ConfirmedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["CONFIRMED_DATE"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return FaUsedApplicationTable.Current;
            }
        }
		
		#region Perporty List
        public string ApplicationId
        {
            get { return Convert.ToString(GetData(FaUsedApplicationTable.C_APPLICATION_ID)); }
            set { SetData(FaUsedApplicationTable.C_APPLICATION_ID, value); }
        }
		
        public string AssetId
        {
            get { return Convert.ToString(GetData(FaUsedApplicationTable.C_ASSET_ID)); }
            set { SetData(FaUsedApplicationTable.C_ASSET_ID, value); }
        }
		
        public string ApplicationCode
        {
            get { return Convert.ToString(GetData(FaUsedApplicationTable.C_APPLICATION_CODE)); }
            set { SetData(FaUsedApplicationTable.C_APPLICATION_CODE, value); }
        }
		
        public string UsedType
        {
            get { return Convert.ToString(GetData(FaUsedApplicationTable.C_USED_TYPE)); }
            set { SetData(FaUsedApplicationTable.C_USED_TYPE, value); }
        }
		
        public string Reason
        {
            get { return Convert.ToString(GetData(FaUsedApplicationTable.C_REASON)); }
            set { SetData(FaUsedApplicationTable.C_REASON, value); }
        }
		
        public string ApplicationPerson
        {
            get { return Convert.ToString(GetData(FaUsedApplicationTable.C_APPLICATION_PERSON)); }
            set { SetData(FaUsedApplicationTable.C_APPLICATION_PERSON, value); }
        }
		
        public DateTime ApplicationDate
        {
            get { return Convert.ToDateTime(GetData(FaUsedApplicationTable.C_APPLICATION_DATE)); }
            set { SetData(FaUsedApplicationTable.C_APPLICATION_DATE, value); }
        }
		
        public string DepartmentId
        {
            get { return Convert.ToString(GetData(FaUsedApplicationTable.C_DEPARTMENT_ID)); }
            set { SetData(FaUsedApplicationTable.C_DEPARTMENT_ID, value); }
        }
		
        public string PersonId
        {
            get { return Convert.ToString(GetData(FaUsedApplicationTable.C_PERSON_ID)); }
            set { SetData(FaUsedApplicationTable.C_PERSON_ID, value); }
        }
		
        public DateTime FromDate
        {
            get { return Convert.ToDateTime(GetData(FaUsedApplicationTable.C_FROM_DATE)); }
            set { SetData(FaUsedApplicationTable.C_FROM_DATE, value); }
        }
		
        public DateTime EndDate
        {
            get { return Convert.ToDateTime(GetData(FaUsedApplicationTable.C_END_DATE)); }
            set { SetData(FaUsedApplicationTable.C_END_DATE, value); }
        }
		
        public string Remark
        {
            get { return Convert.ToString(GetData(FaUsedApplicationTable.C_REMARK)); }
            set { SetData(FaUsedApplicationTable.C_REMARK, value); }
        }
		
        public string Status
        {
            get { return Convert.ToString(GetData(FaUsedApplicationTable.C_STATUS)); }
            set { SetData(FaUsedApplicationTable.C_STATUS, value); }
        }
		
        public string ApprovedPerson
        {
            get { return Convert.ToString(GetData(FaUsedApplicationTable.C_APPROVED_PERSON)); }
            set { SetData(FaUsedApplicationTable.C_APPROVED_PERSON, value); }
        }
		
        public DateTime ApprovedDate
        {
            get { return Convert.ToDateTime(GetData(FaUsedApplicationTable.C_APPROVED_DATE)); }
            set { SetData(FaUsedApplicationTable.C_APPROVED_DATE, value); }
        }
		
        public string OperatedBy
        {
            get { return Convert.ToString(GetData(FaUsedApplicationTable.C_OPERATED_BY)); }
            set { SetData(FaUsedApplicationTable.C_OPERATED_BY, value); }
        }
		
        public DateTime OperatedDate
        {
            get { return Convert.ToDateTime(GetData(FaUsedApplicationTable.C_OPERATED_DATE)); }
            set { SetData(FaUsedApplicationTable.C_OPERATED_DATE, value); }
        }
		
        public string ConfirmedBy
        {
            get { return Convert.ToString(GetData(FaUsedApplicationTable.C_CONFIRMED_BY)); }
            set { SetData(FaUsedApplicationTable.C_CONFIRMED_BY, value); }
        }
		
        public DateTime ConfirmedDate
        {
            get { return Convert.ToDateTime(GetData(FaUsedApplicationTable.C_CONFIRMED_DATE)); }
            set { SetData(FaUsedApplicationTable.C_CONFIRMED_DATE, value); }
        }
		
		#endregion
	}
	
	
}	

